package com.wuxiaofan.service;

import com.wuxiaofan.mapper.GoodsMapper;
import com.wuxiaofan.vo.GoodsVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class GoodsService {

    @Resource
    private GoodsMapper goodsMapper;

    public List<GoodsVO> list() {
        return goodsMapper.list();
    }

    public GoodsVO detail(long id) {
        return goodsMapper.detail(id);
    }

}
